﻿Imports SIGI.BackEnd.SVC
Imports SIGI.Common.BE

Public Class AppointmentController

#Region "<< -SearchByDate- >>"
    Public Function SearchByDate(ByVal pDate As Date, ByVal pUserName As String) As List(Of AppointmentBE)
        Return AppointmentSVC.SearchByDate(pDate, pUserName)
    End Function
#End Region

#Region "<< -Search- >>"
    Public Function Search(ByVal pUserName As String) As List(Of AppointmentBE)
        Return AppointmentSVC.Search(pUserName)
    End Function
#End Region

#Region "<< -Insert- >>"
    Public Function Insert(ByVal pApt As AppointmentBE, ByVal pUserName As String) As Integer
        Return AppointmentSVC.Insert(pApt, pUserName)
    End Function
#End Region

#Region "<< -Update- >>"
    Public Sub Update(ByVal pApt As AppointmentBE)
        AppointmentSVC.Update(pApt)
    End Sub
#End Region

#Region "<< -Delete- >>"
    Public Sub Delete(ByVal pAptId As Integer)
        AppointmentSVC.Delete(pAptId)
    End Sub
#End Region
End Class
